<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>

<s:set name="adminLoginCheck" value="%{#session.adminLogin}" />
<s:if test="%{#adminLoginCheck!=null}">
	<div id="container">
		<table style="width: 100%">

			<tr style="background: #DDD">
				<td>Name</td>

				<td>Email</td>
				<td>Phone_number</td>

				<td>Approval</td>
				<td>Detail</td>
			</tr>


			<s:iterator value="designers">

				<tr>
					<td><s:property value="name" /></td>



					<td><s:property value="email" /></td>
					<td><s:property value="phone_number" /></td>
					<td>
					
					<s:if test="%{approval!=true}">
					
					<a
						href="<s:url action='adminDesignerApproval'>
						<s:param name='id' ><s:property value='id' /></s:param></s:url>">
						<s:property
								value="approval" /></a></s:if>
								<s:else>
								<s:property
								value="approval" />
								</s:else>
								
								
								</td>

					<td><s:form action="adminDesignerEdit" namespace="/">
							<s:hidden name="id" value="%{id}" />
							<s:submit name="editDesigner" value="Edit">
							</s:submit>
						</s:form></td>

				</tr>
			</s:iterator>

		</table>


		<%-- <div>
			<!-- <s:url action="toDetail" var="urlTag">
				<s:param name="id">
					<s:property value="id" />
				</s:param>
			</s:url> -->
					<div class="clothing">
						<a href="<s:property value="#urlTag" />"><img
							src="./img/w_<s:property value="id"/>.jpg" /></a>
					</div>




			<!-- <a href="<s:url action="productList"></s:url>">
							<img  src="./img/w_<s:property value="print_number"/>.jpg" /></a> -->
	
			<!-- <img  src="./img/w_<s:property/>.jpg" /> -->

		</div> --%>


	</div>
</s:if>